﻿<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>请稍后</title>
    <link rel="stylesheet" type="text/css" href="/framework/mui/css/latest/ui_style.css" />
</head>
<body>
<div class="page-top"><a href="javascript:;" class="logo hidden">
    
    <h1 field="sysName">-</h1>
    </a>
    <div class="page-user"><img field="userAvatar" class="avatar"/>
        <div class="text"><span field="dateStr"></span>
            <br/>欢迎您：<span class="username" field="userName"></span>
            【<a href="javascript:;" id="btn_logout" title="安全退出系统">退出</a>】
        </div>
    </div>
    <div class="hidden">
        <ul class="icon-ctrl hidden">
            <li class="first">
                <a class="title" href="javascript:FwMenu.change('home');">
                    <img class="icon" src="/framework/mui/css/latest/icon_user.png" height="20" />我的首页
                </a>
            </li>
            <li class="drop hidden">
                <a class="title">
                    <img class="icon" src="/framework/mui/css/latest/icon_server.png" height="20" />网站管理
                </a>
                <div class="menu" style="width: 200px;">
                    <a class="block" href="javascript:;" onclick=" FwMenu.change('site'); ">
                        <img class="icon" src="/framework/mui/css/latest/icon_secret.png" style="height: 15px" /><b>基本管理</b>
                    </a><a class="block" href="javascript:;" onclick=" FwMenu.change('content'); "><img class="icon" src="/framework/mui/css/latest/icon_chart.png" style="height: 15px" /><b>内容管理</b></a>
                    <div class="hr"></div><strong>选择并管理其他站点：</strong>
                    <div id="sites">
                        <div class="list"></div>
                    </div>
                    <div class="clearfix"></div><em>注:管理其他站点需要重新加载页面。</em>
                </div>
            </li>
            <li><a class="title" href="javascript:FwMenu.change('system');"><img class="icon" src="/framework/mui/css/latest/icon_config.png" height="20" />系统管理</a></li>
        </ul>
    </div>
    <div class="clearfix"></div></div><div class="page-main"><div class="page-main-right" id="page-main-right"><div id="pagetabs" class="page-tabs"><ul></ul><div class="clearfix"></div></div><div style="height:0px;overflow:hidden;clear:both;display:none;">针对IE7优化</div><div class="page-frames" id="pageframes"><div class="mask hidden"></div><div class="loading hidden" style="width:200px"><div><span class="lft"><span class="main"><span class="text">加载中 ...</span></span></span></div></div><div class="frames"></div><div class="page-frame-shadow hidden">这是为支持分列右侧拖动</div></div></div><div class="page-main-left" id="page-main-left"><div class="page-left-menu"></div></div><div id="page-main-split" class="page-main-split" min="120" max="600"></div></div>
    <script type="text/javascript" charset="utf-8" src="/framework/assets/share.js"></script>
<script type="text/javascript">
    window._path = 'admin';
    window.menuData = [
        { id: 'home', text: '我的首页', uri: '#home', childs: [] }
    ];
</script>
    <script type="text/javascript" src="ui.js"></script>
    <script type="text/javascript" src="/framework/mui/js/ui_custom.js"></script>
<script type="text/javascript">
    var pageVar = {
        sysName: ':: 控制面板中心管理端 一 Ops Cms .NET! v1.0.001 ::',
        sysLogo: '',
        dateStr: '2014-10-15', firstTabName: '系统运行信息',
        firstIframeUrl: 'welcome.htm',
        userName: '管理员', userAvatar: '/framework/mui/css/latest/avatar.gif'
    };

    /** 获取时间 **/
    var cmath = function (v) { return v < 10 ? '0' + v : v; };
    function getDate(dt) {
        if (!dt) { dt = new Date(); }
        var chWeekNames = ['日', '一', '二', '三', '四', '五', '六'];
        return cmath(dt.getFullYear()) + '年' + cmath(dt.getMonth() + 1) + '月' +
            cmath(dt.getDate()) + '日&nbsp;/&nbsp;周' + chWeekNames[dt.getDay()];
    };
    pageVar.dateStr = getDate();
    document.title = pageVar.sysName;
    $JS.json.bind(document, pageVar);
    var logoEle = document.getElementsByClassName('logo')[0];
    if (pageVar.sysLogo && pageVar.sysLogo.length > 0) {
        logoEle.style.background = 'url(' + pageVar.sysLogo + ')';
    } logoEle.className = 'logo';
    var siteEle = $JS.$('sites');
    function initSites() { if (window.sites.length == 0) {
            siteEle.style.display = 'none';
        } else {
            var html = '<ul>';
            for (var i in window.sites) {
                html += '<li><b><a href="javascript:;" onclick="setSite(this);" siteid="' + window.sites[i].id + '">' + window.sites[i].name + '</b></a>';
            } html += '</ul>'; siteEle.getElementsByTagName('DIV')[0].innerHTML = html;
            $JS.each(siteEle.getElementsByTagName('DIV')[0].getElementsByTagName('LI'), function(i, e) {
                e.getElementsByTagName('A')[0].onclick = function() {
                    setSite(this.getAttribute('siteid'));
                };
            });
        }
    } 
    var timer = setInterval(function () {
        if (window.menuData != null) {
            clearInterval(timer);
            FwMenu.init(window.menuData, window.menuHandler);
            FwMenu.change(); _loadCategoryTree(); initSites();
        }
    }, 100);
    $JS.event.add(window, 'load', function () {
        $JS.event.add($JS.$('btn_logout'), 'click', function() {
            if (confirm('请确认您已经操作完毕并做好数据保存工作！确定继续吗？')) {
                location.replace('?module=system&action=logout');
            }
        });
        FwTab.show(pageVar.firstTabName, pageVar.firstIframeUrl, false);
        var menuLis = document.getElementsByClassName('icon-ctrl')[0].getElementsByTagName('LI');
        $JS.each(menuLis, function (i, e) { if (e.className.indexOf('drop') != -1) { $JS.hover(e); } });
    });
</script>
</body>
</html>